<?php
/*
    |--------------------------------------------------------------------------
    | Application Routes
    |--------------------------------------------------------------------------
    |
    | Here is where you can register all of the routes for an application.
    | It's a breeze. Simply tell Laravel the URIs it should respond to
    | and give it the Closure to execute when that URI is requested.
    |
    */

/* Site */
Route::get('/', array('as'=> '/', 'uses' => 'HomeController@index'));
Route::get('/category/{id}/{category_name}.html', array('as'=> '/category', 'uses' => 'HomeController@category'));
Route::get('/manufacturer/{id}/{manufacturer_name}.html', array('as'=> '/manufacturer', 'uses' => 'HomeController@manufacturer'));
Route::get('/products/{id}/{product_name}.html', array('as'=> 'products/{id}', 'uses' => 'ProductsController@show'));